account in the authenticator, enter the account name (user TestUser in the first step), key (the key generated in the first step), select time based. ////4, run Authcode method will key and the verification code to be tested in (Codes,key), you can know is not the correct secret key! return value Boolean//I'm not going to write about this, because this can be called directly as a util tool.//Importjava.sec
By default, SSH has used secure data communication between remote machines. However, if you want to add another security layer for your SSH connection, you can add Google Authenticator) the two-factor authentication module allows you to enter a random one-time password (TOTP) Verification code when connecting to the SSH server. When you connect, you have to enter the verification code from your smartphone o
verification., the default Github is no two-step verification, click the Settings button to set.Github provides two-step verification based on the APP (Google Authenticator) and SMS verification code, and we choose the first Google authenticator.Enter the first verification mode, and then a bunch of recovery codes are
ssh服务 to make configuration effective
Vi. use Google authenticator Pam plugin to generate dynamic verification code for SSH login account
Note: Which account needs dynamic verification code, please switch to this account operation
Google-authenticator #运行此命令
Do your want authentication to
verification.
, the default Github is no two-step verification, click the Settings button to set.
Github provides two-step verification based on the APP (Google Authenticator) and SMS verification code, and we choose the first Google authenticator.
Enter the first verification mode, and then a bunch of recovery
Your new secret key is: www. haiyun. meYour verification code is 582849 Your emergency scratch codes are: 30776626 14200155 80795568 23936997 21919909 # the above lines of numbers are emergency codes Do you want me to update your "/root /. google_authenticator "file (y/n) y # update the configuration file Do you want to disallow multiple uses of the same authenticationtoken? This restricts you to one login
just need to flip the wall to see it.1) Google-authenticator will generate a. google_authenticator file in your home directoryAt the same time will inquire about some mechanisms and methods, if you do not understand the words are good all the wayDo your want authentication tokens to be time-based#是否基于时间生成密码, this authentication method is divided into hopt and topt, one is based on counter to calculate, one
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.